.PHONY:all
all:
	@cd Compile_server;\
	make;\
	cd -;\
	cd Oj_server;\
	make;\
	cd -;

.PHONY:clean
clean:
	@cd Compile_server;\
	make clean;\
	cd -;\
	cd Oj_server;\
	make clean;\
	cd -;\
	rm -rf output;

.PHONY:output
output:
	@mkdir -p output/Compile_server;\
	mkdir -p output/Oj_server;\
	cp Compile_server/temp output/Compile_server -rf;\
	cp Compile_server/compile_server output/Compile_server;\
	cp Oj_server/Conf output/Oj_server -rf;\
	cp Oj_server/questions output/Oj_server -rf;\
	cp Oj_server/template_html output/Oj_server -rf;\
	cp Oj_server/wwwroot output/Oj_server -rf;\
	cp Oj_server/oj_server output/Oj_server;
